@import '../../../variable.less';
.cart {
  position: relative;
  .cart-number{
    color: #fff;
    background: red;
    display: inline-block;
    min-width: 12px;
    line-height: 12px;
    border-radius: 7px;
    font-size: 12px;
    text-align: center;
    padding: 1px;
  }
  .cart-link {
    display: inline-block;
    position: relative;
    width: 100%;
    padding: 8px 5px 7px;
    line-height: 22px;
    box-sizing: border-box;
    background: @whitecolor;
    color: @inputcolor;
    text-align: center;
    border: 1px solid @linecolor;
  }

  .content {
    display: none;
    background-color: #fff;
    position: absolute;
    box-shadow: 1px 1px 7px #888888;
    width: 308px;
    right: 0;
    top: 40px;
    z-index: 12;
    .empty-cart{
      padding-left: 15px;
      color:@headercolor;
      .emp-cart-icon{
        font-size: 2.5rem;
      }
      span{
        font-size: 0.8rem;
      }
    }
  .iconfont-cart {
    color: @registercolor;
    padding-right: 5px;
  }
  .cart-number {
    display: inline-block;
    position: relative;
    width: 16px;
    height: 16px;
    line-height: 16px;
    border-radius: 50%;
    color: @whitecolor;
    background: @registercolor;
    top: -4px;
    right: -2px;
  }
}
.cart-info {
  color: @mutecolor;
  min-height: 65px;
  font-size: 13px;
  p {
    margin: 10px 12px;
    text-align: left;
  }
  ul {
    li {
      border-top: 1px solid @bordercolor;
      padding: 8px;
      cursor: pointer;
      img {
        display: inline-block;
        box-sizing: border-box;
        border: 1px solid @bordercolor;
        padding: 1px 1px;
      }
      .goods-name {
        padding: 0 10px;
        text-align: left;
      }
      .price {
        line-height: 1.8;
        display: inline-block;
        text-align: right;
        font-size: 14px;
        color: @color;
        font-weight: bold;
        a {
          display: block;
          text-align: right;
          font-size: 14px;
        }
      }
    } //li结束
  } //ul结束
  .total {
    background-color: @backcolor;
    padding-left: 10px;
    .width-7-10 {
      padding-top: 8px;
      text-align: left;
      padding-left: 10px;
    }
    span {
      color: @color;
      font-family: arial;
      font-weight: bold;
      font-size: 14px;
      padding: 0 3px;
    }
    a {
      background-color: @maincolor;
      padding: 4px 6px;
      display: inline-block;
      color: @whitecolor;
      margin: 8px;
      cursor: pointer;
    }
  }
}
}
//cart-info样式结束
.active{
  box-shadow: 1px 1px 7px #888888;
  .content{
    display: block;
  }
  .over-hidden::after{
    content: '';
    height: 12px;
    position: absolute;
    left:0;
    right:0;
    bottom:-6px;
    background: #fff;
    z-index: 20;
  }
  .cart-link{
    border-right-color: transparent;
  }
}

